#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void func(char* str)
{
	int i= 0, j = 0;
	if (str[j] < 'A' || str[j]>'z')
	{
		while (str[j] < 'A' || str[j]>'z')
		{
			j++;
		}
	}
	else
	{
		while (str[j] >= 'A' && str[j] <= 'z')
		{
			j++; i++;
		}
	}
		for (j; str[j]!= '\0'; j++)
		{
			if (str[j] >= 'A' && str[j] <= 'z')
			{
				str[i] = str[j]; i++;
			}
		}
		str[i] = '\0';
}
int main()
{
	char arr[100] = { 0 };
	while (gets(arr) != EOF)
	{
		func(arr);
		printf("%s\n", arr);
	}

	return 0;
}